package uk.ac.glasgow.demosocs.impl;

import java.util.Date;
import java.util.Set;

import uk.ac.glasgow.demosocs.Candidate;
import uk.ac.glasgow.demosocs.Election;
import uk.ac.glasgow.demosocs.ElectionResult;
import uk.ac.glasgow.demosocs.ElectionState;

public class Referendum implements Election{
	
	private String refID;
	private String refQuestion;
	private int yes;
	private int no;
	private Date start;
	private Date end;
	private String typeID;
	private String name;
	
	public Referendum(String refID, String refQuestion, int yes, int no, 
			Date start,Date end){
		
		this.refID = refID;
		this.refQuestion = refQuestion;
		this.yes = 0;
		this.no = 0;
		this.start = start;
		this.end = end;
	}
	
	public Referendum(String name, String typeID) {
		this.name = name;
		this.typeID = typeID;
	}

	public String getEID() {
		return refID;
	}
	
	public void setEID(String EID){
		this.refID = EID;
	}
	
	public String getQuestion(){
		return this.refQuestion;
	}
	
	public void setQuestion(String question){
		this.refQuestion = question;
	}
	
	public Date getStart() {
		return this.start;
	}
	
	public void setStart(Date start){
		this.start = start;
	}
	
	public Date getEnd() {
		return this.end;
	}
	
	public void setEnd(Date end){
		this.end = end;
	}
	
	public int getYes(){
		return this.yes; 
	}
	
	public void incYes(){
		this.yes++;
	}
	
	public int getNo(){
		return this.no;
	}
	
	public void incNo(){
		this.no++;
	}
	
	//-------------------------------------- DO NOTHING
		public ElectionResult getElectionResult() {
			return null;
		}

		public ElectionState getElectionState() {
			return null;
		}
		
		
		public Set<Candidate> getCandidates() {
			return null;
		}
		
		
		public Date getOpenNominations() {
			return null;
		}
		//----------------------------------------
	
}